<%@ page contentType="text/html;charset=UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta name="author" content="jack"/>
    <meta name="keywords" content="网页描述"/>
    <meta name="description" content="网页关键字"/>
    <title>我的珠宝店</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/global.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/layout.css"/>
    <script type="text/javascript" src="${ctx}/static/js/jquery.min.js"></script>
     <script type="text/javascript">
	$(function() {
		//alert(${"logout"});
		//setTimeout("reload();",10000);
	});
	
	function reload(){
		window.location.href="${ctx}/logout";
	}
	</script>  
</head>

<body>
<%--<c:if test="${shiroLoginFailure != null}">
    <script>
        alert("帐号密码错误");
    </script>
</c:if>--%>
<div id="wrap">
    <form class="login-form" action="${ctx}/login" method="post" id="form">
        <div class="index">
            <div class="logo_main"><img src="${ctx}/static/images/logo_main.png" alt="" width="220"/></div>
            <div class="login_box">
                <p class="one"><input class="login" type="text" placeholder="用户名" name="username"/></p>

                <p style="margin-bottom:22px;"><input class="login" type="password" placeholder="密码" name="password"/></p>

                <p><a onClick="$('#form').submit()">&nbsp;</a>
                </p>
                <c:if test="${message != null && message == 'fail'}">
                <img class="cuo_tishi" src="${ctx}/static/images/login_error.png" alt=""/>
                </c:if>
            </div>
        </div>
    </form>
    <div class="footer">© 2014 My jewelry store</div>
</div>
</body>
</html>